import routerHelper from '../libs/router-helper';

import dbRouters from "~/pages/db/router.js";
import cs4plRouters from '~/pages/cs4pl/router.js';
import hwcloudRouters from '~/pages/hwcloud/router.js';
import capitalandRouters from '~/pages/capitaland/router.js';
import toolsRouters from '~/pages/tools/router.js';

const routes = [
  {
    path: "/",
    name: "Index",
    meta: {
      title: "工作台",
      activeMenu: 0
    },
    component: () => import("~/pages/Index")
  },
  ...dbRouters,
  ...cs4plRouters,
  ...hwcloudRouters,
  ...capitalandRouters,
  ...toolsRouters,
  {
    path: '/docs',
    name: "ApiDocuments",
    meta: {
      title: "Api文档",
      activeMenu: 1
    },
    component: () => import("~/pages/ApiDocument.vue")
  }
];

export default routerHelper.init(routes, '工具系统');